package com.office.doctorsoffice.domain;

import java.util.Date;

public class Appointment {
	
	private int appointmentid;
	private Date date;
	private boolean docAvailable;
	
	public int getAppointmentid() {
		return appointmentid;
	}

	public void setAppointmentid(int appointmentid) {
		this.appointmentid = appointmentid;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public boolean isDocAvailable() {
		return docAvailable;
	}

	public void setDocAvailable(boolean docAvailable) {
		this.docAvailable = docAvailable;
	}

	private Patient patient;
	
	public Appointment(int appointmentid, Date date) {

		this.appointmentid = appointmentid;
		this.date = date;
	}

	/**
	 * @param patient the patient to set
	 */
	public void setPatient(Patient patient) {
		this.patient = patient;
	}

	/**
	 * @return the patient
	 */
	public Patient getPatient() {
		return patient;
	}
}